import React, { Component } from 'react'
import PropTypes from 'prop-types'
export default class Rcc extends Component {
  static propTypes = {
    name: PropTypes.string,
    age: PropTypes.number,
    sex: PropTypes.string.isRequired,
    children: PropTypes.func
  }

  static defaultProps = {
    sex: '默认值'
  }

  render() {
    return (
      <div>
        {this.props.sex}
        {/* Rcc---{this.props.name}----{this.props.age} */}
        {this.props.children}
      </div>
    )
  }
}
